package cn.deepmax.anime.web;


public class Constant {


    public static final String NAMESPACE = "island";
    public static final String INDEX_URL = "http://www.700mh.com/manhua/1436/";
    public static final String FOLDER = "D:/anime/";



    public static final String WEB = "http://www.700mh.com";

    public static final String PHANTOM_EXE = "D:\\Program Files\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe";
    public static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537.36";
    public static final String REDIS_KEY = ":section";


    public static final String getPageKey( Integer index,Integer page){
        return NAMESPACE+REDIS_KEY+index+":img"+page;
    }

    public static final String getSectionKey( Integer index){
        return NAMESPACE+REDIS_KEY+index+":content";
    }

    public static final String getMaxKey(){
        return NAMESPACE+":max";
    }

    public static final String getRootFolder(){
        return FOLDER+NAMESPACE;
    }

}
